package com.ncepu.clubmanagement.service.impl;

import com.ncepu.clubmanagement.mapper.UniversityMapper;
import com.ncepu.clubmanagement.pojo.School;
import com.ncepu.clubmanagement.service.UniversityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UniversityServiceImpl implements UniversityService {

    @Autowired
    private UniversityMapper universityMapper;
    @Override
    public List<School> getSchByName(String schName) {
        return universityMapper.getSchByName(schName);
    }

    @Override
    public List<School> getAllSch() {
        return universityMapper.getAllSch();
    }
}
